/*
 * main.cpp
 *
 *  Created on: Feb 7, 2009
 *      Author: tandaica0612
 */
#include <iostream>
#include <time.h>
#include <stdlib.h>

using namespace std;
int main(){
	int random_integer;
	int n;
	cout << "Nhap so n voi n nho hon RAND_MAX: "; cin >> n;
	srand((unsigned)time(NULL));
	for(int index=0; index<20; index++){
		random_integer = (rand() % n)+1;
		cout << random_integer << endl;
	}
	return 0;
}
